﻿<%@ page language="C#" autoeventwireup="true" inherits="admin_CalTypeEditPrice, App_Web_caltypeeditprice.aspx.fdf7a39c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/page.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.myvalidate.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.ysbcheck.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.url.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function() {


            $("#okbtn").Ck();


            $("#fisedit").YsbValid({ type: "number", notnull: true });

            $("#lastedit").YsbValid({ type: "number", notnull: true });
            $("#okbtn").click(function() {

                if ($.Check()) {
                    OpenWindow("价格调整中...请稍后..");
                    $.post("CalTypePriceEdit.ashx", { id: $.query.get('id'), fisrt: $("#fisedit").val(), last: $("#lastedit").val() }, function(data) {

                        if (data == "ok") {
                            OpenWindow('价格调整完成');
                        }
                        else {
                            OpenWindow(data);
                        }
                        window.href = "CalType.aspx";
                    });


                }
            });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="title">
        计费类别管理</div>
    <div style="color: #636; margin-bottom: 15px;">
        计费类别 <span type="text" name="textfield" id="nametxt" runat="server" style="width: 200px;
            height: 15px; margin-left: 20px;"></span>
    </div>
    <div style="color: #636; margin-bottom: 15px;">
        运输费率：首磅 $ <span name="GeneralRatesFirsttxt" type="text" id="Firsttxt" runat="server"
            style="width: 50px; height: 15px;"></span>&nbsp; &nbsp; &nbsp; 次磅 $ <span name="GeneralRatesLasttxt"
                type="text" id="Lasttxt" runat="server" style="width: 50px; height: 15px;">
        </span>
    </div>
    <div style="color: #636; margin-bottom: 15px;">
        描述 <span type="text" name="textfield" id="about" runat="server" style="width: 200px;
            height: 15px; margin-left: 43px;"></span>
    </div>
    <div style="color: #636; margin-bottom: 15px;">
        运输费率调整：首磅 $
        <input name="GeneralRatesFirsttxt" type="text" id="fisedit" runat="server" style="width: 50px;
            border: 1px solid #CCC; height: 15px;" value="" />
        &nbsp; &nbsp; &nbsp; 次磅 $
        <input name="GeneralRatesLasttxt" type="text" id="lastedit" runat="server" style="width: 50px;
            border: 1px solid #CCC; height: 15px;" value="" />
        <br />
        <br />
        增加费用请输入正数，减少费率请输入负数，不进行调整请输入0 , 该调整将调整客户数据。
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;
        text-align: center;">
        <img src="../images/btn-save.gif" id="okbtn" width="136" height="40" />
    </div>
    </form>
</body>
</html>
